{% extends "learning_logs/base.html" %}

{% load bootstrap4 %}

{% block page_header %}
  <h1>编辑条目</h1>
{% endblock page_header %}

{% block content %}

  <div class="card mb-3">
    <h4 class="card-header">
      <small><a href="{% url 'learning_logs:topic' topic.id %}">{{ topic }}</a></small>
      <small><small>{{ entry.date_added|date:'M d, Y H:i' }}</small></small>
      <form action="{% url 'learning_logs:edit_entry' entry.id %}" method='post'>
    {% csrf_token %}
    </h4>
   </div>
    {% bootstrap_form form %}
    {% buttons %}
      <button name="submit" class="btn btn-success">保存更改</button>
    {% endbuttons %}
  </form>

{% endblock content %}
